package org.jeecg.modules.gyy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.gyy.gyyuser.entity.GyyUser;

/**
 * @Description: 用户表
 * @Author: L
 * @Date:   2024-11-27
 * @Version: V1.0
 */
public interface PcUserService extends IService<GyyUser> {

    /**
     * 查询用户
     * @param username
     * @return
     */
    public GyyUser getUserByName(String username);


    /**
     * 查询手机号
     * @param phone
     * @return
     */
    public GyyUser getUserByPhone(String phone);


    /**
     * 查询邮箱
     * @param email
     * @return
     */
    public GyyUser getUserByEmail(String email);


    /**
     * 重置密码
     * @param username
     * @param oldpassword
     * @param newpassword
     * @param confirmpassword
     * @return
     */
    public Result<?> resetPassword(String username, String oldpassword, String newpassword, String confirmpassword);


    /**
     * 忘记密码
     * @param username
     * @param newpassword
     * @param confirmpassword
     * @return
     */
    public Result<?> forgetPassword(String username, String newpassword, String confirmpassword);
}
